﻿using ZQNB.Common.Events;

namespace ZQNB.BaseLib.Users.Events
{
    public class UserCreatedEvent : DomainEventBase
    {
        public UserCreatedEvent(string loginName)
        {
            LoginName = loginName;
        }
        public string LoginName { get; set; }
    }

    public class UserDeletedEvent : DomainEventBase
    {

    }

    public class CreatedUser
    {
        public string Name { get; set; }
        public string LoginName { get; set; }
        public string Email { get; set; }
        public string CustomNo { get; set; }
        public UserType UserType { get; set; }
    }

    public enum UserType
    {
        Teacher = 1,
        Student = 2,
        Leader = 3,
        Parent = 4
    }
}